body {
    background-color: rgb(245, 245, 245);
    /* overflow: hidden; */
}

input {
    width: 16px;
    height: 16px;
    min-width: 16px;
}

/* --------------------------头部-------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    width: 100vw;
    height: 44px;
    background: #fff;
    border-bottom: 1px solid rgb(240, 240, 240);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    z-index: 100;
}

header span:nth-of-type(1) {
    margin-left: 12px;
    letter-spacing: 3px;
    font-size: 18px;
    font-weight: bolder;
}

header span:nth-of-type(2) {
    display: block;
    width: 44px;
    height: 44px;
    line-height: 44px;
    letter-spacing: 2px;
    color: #888;
    cursor: pointer;
}

/* --------------------------购物车商品列表-------------------------- */
.container {
    margin-top: 62px;
    margin-bottom: 67px;
    /* overflow: hidden; */
}

.goods_list {
    margin: 0 auto;
    width: 96vw;
    /* height: 169px; */
    background-color: #fff;
    margin-bottom: 18px;
    border-radius: 20px;
    box-shadow: 0px 0px 8px 1px #ccc;
}

.goods_type {
    padding: 10px 0px 12px 12px;
    display: flex;
    align-items: center;
}

.goods_type>span {
    letter-spacing: 2px;
    margin-left: 12px;
}

.goods {
    width: 100%;
    padding: 12px;
    display: flex;
    align-items: center;
}

.goods a img {
    margin-left: 12px;
    width: 120px;
    height: 120px;
}

.goods_des {
    height: 120px;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.goods_tk {
    max-width: 176px;
    font-size: 14px;
}

.goods_tk>a>p {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
    color: #000;
    text-decoration: none;
}

.goods_kind {
    width: 160px;
    padding: 3px 12px;
    color: #8a8a8a;
    background-color: #e9e9e9;
    border-radius: 12px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.goods_kind img {
    width: 13px;
    height: 13px;
}

.goods_pn {
    position: relative;
    display: flex;
    justify-content: space-between;
}

.price {
    font-weight: bold;
    font-size: 12px;
    color: red;
}

.price>span {
    font-size: 16px;
}

.goods_num {
    width: 78px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: 1px solid #ccc;
    border-radius: 6px;
    text-align: center;
}

.subtract {
    width: 20px;
    border-right: 1px solid #ccc;
}

.add {
    border-left: 1px solid #ccc;
    width: 20px;
}

.goods_num .num {
    text-align: center;
    width: 38px;
}

/* <!-- 购物车里没有商品 --> */
.no_goods {
    top: 0;
    left: 0;
    z-index: -1;
    width: 100vw;
    height: 50vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    user-select: none;
}

.no_goods img {
    width: 250px;
    height: auto;
}

.no_goods p:nth-of-type(1) {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.no_goods p:nth-of-type(2) {
    letter-spacing: 1px;
    font-size: 14px;
    color: rgb(156, 156, 156);
}

/* --------------------------底部-------------------------- */
.settlement {
    position: fixed;
    bottom: 2.3rem;
    left: 0;
    overflow: hidden;
    width: 100vw;
    height: 49px;
    background-color: #fff;
    border-top: 1px solid rgb(240, 240, 240);
    border-bottom: 1px solid rgb(240, 240, 240);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.all_choice {
    display: flex;
    align-items: center;
}

.all_choice>input {
    margin-left: 12px;
}

.all_choice>span {
    color: #888;
    margin-left: 12px;
}

.pay_box {
    margin-right: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.price_total {
    margin-right: 10px;
    font-size: 13px;
}

.price_total span:nth-of-type(1) {
    color: red;
}

.price_total span:nth-of-type(2) {
    font-size: 17px;
    color: red;
}

.pay {
    letter-spacing: 5px;
    padding: 8px 25px;
    border-radius: 30px;
    color: #fff;
    background-image: linear-gradient(to right, rgb(230, 177, 3), rgb(255, 81, 0));
}

/* 删除商品 */
.del_box {
    display: none;
    margin-right: 12px;
}

.del {
    letter-spacing: 5px;
    padding: 8px 25px;
    border-radius: 30px;
    color: #fff;
    background-image: linear-gradient(to right, rgb(230, 3, 135), rgb(255, 0, 34));
}